﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TorchlightModOverseer;
using TorchlightModOverseer.Domain.Models;
using WinFormsCommands;

namespace TorchlightModOverseer.Commands
{
	public class SaveConfigCommand : ICommand
	{
		ConfigModel Model;
		public SaveConfigCommand(ConfigModel model)
		{
			Model = model;
		}

		public CommandResult Execute(CommandContext context)
		{
			if (Model == null)
				throw new Exception();

			return context.View("ModsView", null);
		}
	}
}
